﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeclarationsItemNoBlanaceRptList.aspx.cs"
    Inherits="WMS6.Web.Analytics.DeclarationsItemNoBlanaceRptList" %>

<%@ PreviousPageType VirtualPath="~/Analytics/DeclarationsItemNoBlanaceRptQuery.aspx" %>
<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>DeclarationsItemNoBlanaceRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function() {
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "DeclarationsItemNoBlanaceRptList.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>

</head>
<body>
    <form id="F15541" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblDeclarationsItemNoBlanaceRptList" runat="server" CssClass="label_header"
                            Text=" 报关项号平衡报告"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="false" Text="<%$ Resources:ButtonResource,btnRefresh %>"
                            meta:resourcekey="btnRefresh" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    <asp:GridView ID="gvDeclarationsItemNoBlanaceRptList" runat="server" AutoGenerateColumns="False"
                        OnRowDataBound="gvDeclarationsItemNoBlanaceRptList_RowDataBound" OnInit="gvDeclarationsItemNoBlanaceRptList_Init"
                        OnSorting="gvDeclarationsItemNoBlanaceRptList_Sorting" AllowSorting="True" CssClass="gridview"
                        PageSize="20" Width="1100px">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="FieldSN">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15541','gvDeclarationsItemNoBlanaceRptList');"
                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvDeclarationsItemNoBlanaceRptList');"
                                        meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvDeclarationsItemNoBlanaceRptList');"
                                        meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ITEM_NO_ID" HeaderText="项号代码" FooterText="项号代码" SortExpression="ITEM_NO_ID"
                                meta:resourcekey="ITEM_NO_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="项号描述" HeaderText="项号描述" SortExpression="ITEM_NO_DESCR"
                                meta:resourcekey="FieldDescr">
                                <ItemTemplate>
                                    <asp:Label ID="lblItemNoDescr" runat="server" Text='<%# Eval("ITEM_NO_DESCR").ToString() %>'
                                        meta:resourcekey="lblDESCR"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ITEM_NO_UOM" HeaderText="项号单位" FooterText="项号单位" SortExpression="ITEM_NO_UOM"
                                meta:resourcekey="ITEM_NO_UOM">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="上期报关库存" HeaderText="上期报关库存" SortExpression="BEGINQTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblBeginningQty" runat="server" Text='<%# GetPreferenceDigit(Eval("BEGINQTY").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="本月报关入库" HeaderText="本月报关入库" SortExpression="INQTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblCurrentIssueInboundQty" runat="server" Text='<%# GetPreferenceDigit(Eval("INQTY").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="本月报关出库" HeaderText="本月报关出库" SortExpression="OTQTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblCurrentIssueOutBoundQty" runat="server" Text='<%# GetPreferenceDigit(Eval("OTQTY").ToString()) %>'
                                        meta:resourcekey="lblInvQty"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="期末报关库存" HeaderText="期末报关库存" SortExpression="ENDQTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblTotalQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ENDQTY").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <div>
                        <table width="1100px" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalBeginningQty" runat="server" Text="期初量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalBeginningQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCurrentIssueInboundQty" runat="server" Text="入库量:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalCurrentIssueInboundQtyText" runat="server" Text="" class="label"
                                                    Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCurrentIssueOutBoundQty" runat="server" Text="出库量:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalCurrentIssueOutBoundQtyText" runat="server" Text="" class="label"
                                                    Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalQty" runat="server" Text="总库存:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <input type="hidden" runat="server" id="hdnFrom" />
        <input type="hidden" runat="server" id="hdnShowLot" />
        <input type="hidden" id="hdnActionID" runat="server" />
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:ButtonResource,btnNewSearch %>"
                            CssClass="button" Enabled="false" OnClientClick="javascript:window.location.href='DeclarationsItemNoBlanaceRptQuery.aspx';return false;"
                            meta:resourcekey="btnSearch" />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$ Resources:ButtonResource,btnReSearch %>"
                            CssClass="button" Enabled="false" OnClientClick="javascript:returnSearch();return false;"
                            meta:resourcekey="btnReSearch" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$ Resources:ButtonResource,btnList %>"
                            CssClass="button" Enabled="false" OnClick="btnList_Click" meta:resourcekey="btnList" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$ Resources:ButtonResource,btnExport %>"
                            CssClass="button" Enabled="false" OnClick="btnExport_Click" meta:resourcekey="btnExport" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
